﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HMIS.FrameWork.Repository;
using HMIS.FrameWork.DomainBase;
using HMIS.Infrastructure.Core.Authority;

namespace HMIS.Infrastructure.Core.Repositories
{
	public interface IMenuRepository : IRepository<MenuNode>
	{
		bool IsFieldExist(string fieldName, string fieldValue, string id);
		IList<MenuNode> GetListByUserId(string userId);
		IList<MenuNode> GetAllListByUserId(string userId);
		IList<MenuNode> GetListByRoleId(string roleId);
		/// <summary>
		/// 获取用户常用菜单列表
		/// <remarks>排除用户没权限的菜单</remarks>
		/// </summary>
		/// <param name="userId">用户Id</param>
		/// <returns></returns>
		IList<MenuNode> GetUserFavoriteList(string userId);
	}
}
	